package org.gitee.weapp.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.gitee.weapp.domain.entity.AddressInfo;

import java.util.List;

@Mapper
public interface AddressInfoMapper {

    int insert(AddressInfo addressInfo);

    int update(AddressInfo addressInfo);

    int updateDefault(@Param("openId") String openId, @Param("isDefault") Boolean isDefault);

    List<AddressInfo> getAddressList(@Param("openId") String openId);

    int delete(@Param("id") Integer id);
}
